- position = local_assigns.fetch(:position, nil)

.search-result-row.gl-row.gl-no-gutters.gl-flex.gl-flex-col.gl-mt-5{ class: '!gl-pb-5 !gl-mb-0 @sm/panel:gl-flex-row' }
  .gl-col-sm-9
    %span.gl-flex.gl-items-center
      = gl_badge_tag issuable_state_text(issuable), variant: issuable_state_to_badge_class(issuable)
      = sprite_icon('eye-slash', css_class: 'gl-fill-icon-subtle gl-ml-2') if issuable.respond_to?(:confidential?) && issuable.confidential?
      = link_to issuable_path(issuable), data: { event_tracking: 'click_search_result', event_label: @scope, event_value: position }, class: 'gl-w-full' do
        %span.term.str-truncated.gl-font-bold.gl-ml-2= simple_search_highlight_and_truncate(issuable.title, @search_term)
    .gl-text-subtle.gl-mb-3.gl-mt-2.gl-text-sm
      = issuable_project_reference(issuable)
      &middot;
      = sprintf(s_('created %{issuable_created} by %{author}'), { issuable_created: time_ago_with_tooltip(issuable.created_at, placement: 'bottom'), author: link_to_member(issuable.author, avatar: false) }).html_safe
      - if (target_branch = issuable_visible_target_branch(issuable))
        %span.project-ref-path.has-tooltip.gl-inline-block.gl-truncate.gl-max-w-26.gl-align-bottom{ title: _('Target branch: %{target_branch}') % {target_branch: target_branch} }
          &nbsp;
          = link_to project_ref_path(issuable.project, target_branch), class: 'ref-name !gl-text-subtle' do
            = sprite_icon('branch', size: 12, css_class: 'fork-sprite')
            = target_branch
    .description.term.gl-px-0.gl-text-sm
      = highlight_and_truncate_issuable(issuable, @search_term, @search_highlight)
    - if issuable.labels.any?
      .gl-mt-3.gl-flex.gl-flex-wrap.gl-gap-2
        - presented_labels_sorted_by_title(issuable.labels, issuable.project).each do |label|
          = link_to_label(label)

  .gl-col-sm-3.gl-mt-3.gl-text-right{ class: "@sm/panel:gl-mt-0" }
    %li.gl-list-none
      - if issuable.respond_to?(:upvotes_count) && issuable.upvotes_count > 0
        %span.has-tooltip{ title: _('Upvotes') }
          = sprite_icon('thumb-up', css_class: "gl-align-middle")
          = issuable.upvotes_count
      = render_if_exists partial: 'search/results/work_item_status', locals: { issuable: issuable }
    %span.gl-text-subtle.gl-text-sm= sprintf(s_('updated %{time_ago}'), { time_ago: time_ago_with_tooltip(issuable.updated_at, placement: 'bottom') }).html_safe
